package kr.ac.kookmin.cs.object;

import kr.ac.kookmin.cs.communication.CommunicationManager;
import kr.ac.kookmin.cs.enumeration.CommunicationSubjectState;

public class CommunicationSubject {
	
	private int communicationSubjectNumber = 0;
	private CommunicationSubjectState state = CommunicationSubjectState.NONE;

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof CommunicationSubject){
			if(this.getId() == ((CommunicationSubject)obj).getId())
				return true;
		}
		return false;
	}

	public CommunicationSubject(){
		this.communicationSubjectNumber = CommunicationManager.getCurrentCommunicationSubjectProductNumber();
	}
	
	public int getId(){
		return communicationSubjectNumber;
	}
	
	public CommunicationSubjectState getCommunicationState(){
		return state;
	}
	
	public void setCommunicationState(CommunicationSubjectState state){
		this.state = state;
	}
	
}
